# 计科201132叶英杰
import random
coin = 50
computer = ['石头', '剪刀', '布']
while 1:
    user = input('请输入您的出拳：')
    com = random.choice(computer)
    print('电脑出拳：', com)
    if user =='石头' and com == '剪刀':
        coin+=5
        print("你赢了，金币数：",coin)
    elif user == '剪刀' and com == '布':
        coin+=5
        print("你赢了，金币数：",coin)
    elif user == '布' and com == '石头':
        coin+=5
        print("你赢了，金币数：",coin)
    elif user == '剪刀' and com == '石头':
        coin-=5
        print("你输了，金币数：", coin)
    elif user == '布' and com == '剪刀':
        coin-=5
        print("你输了，金币数：", coin)
    elif user == '石头' and com == '布':
        coin-=5
        print("你输了，金币数：", coin)
    elif user == com:
        coin+=0
        print("平局，金币数：", coin)
    if coin == 0:
        print('你输光了，金币数：',coin)
        break
    elif coin == 100:
        print('你赢了，金币数：',coin)
        break







